package com.coffee.dict;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author songkui
 * @since 2021-1-27 14:15
 */
@Configuration
public class DictConfiguration {


    @Bean
    public DictTranslationService dictTranslationService(CoffeeDictCache coffeeDictCache){
        return new DictTranslationService(coffeeDictCache);
    }

    @Bean
    public DictAspect dictAspect(DictTranslationService dictTranslationService) {
        return new DictAspect(dictTranslationService);
    }
    @Bean
    public DictMapAspect dictMapAspect(CoffeeDictCache coffeeDictCache) {
        return new DictMapAspect(coffeeDictCache);
    }

    @Bean
    public DictPageAspect dictPageAspect(DictTranslationService dictTranslationService) {
        return new DictPageAspect(dictTranslationService);
    }

}